package cn.bigfire.compiler.dragon.appendixA.handwrite.inter;

import cn.bigfire.compiler.dragon.appendixA.handwrite.lexer.Token;
import cn.bigfire.compiler.dragon.appendixA.handwrite.symbols.Type;

public class Op extends Expr {

    public Op(Token token, Type type) {
        super(token, type);
    }

    public Expr reduce(){
        Expr x = gen();
        Temp temp = new Temp(type);
        emit(temp.toString() +" = " + x.toString());
        return temp;
    }

}
